package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 市级预警产品表
 *
 * @TableName ybba01c
 */
@TableName(value = "ybba01c")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Ybba01c implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybba01c010")
    private String ybba01c010;

    /**
     * 预警产品类型
     */
    @TableField(value = "ybba01c020")
    private Integer ybba01c020;

    /**
     * 预警时间
     */
    @TableField(value = "ybba01c030")
    private LocalDateTime ybba01c030;

    /**
     * 四级预警区域
     */
    @TableField(value = "ybba01c040")
    private String ybba01c040;

    /**
     * 三级预警区域
     */
    @TableField(value = "ybba01c050")
    private String ybba01c050;

    /**
     * 二级预警区域
     */
    @TableField(value = "ybba01c060")
    private String ybba01c060;

    /**
     * 一级预警区域
     */
    @TableField(value = "ybba01c070")
    private String ybba01c070;

    /**
     * 四级预警地理范围
     */
    @TableField(value = "ybba01c080")
    private String ybba01c080;

    /**
     * 三级预警地理范围
     */
    @TableField(value = "ybba01c090")
    private String ybba01c090;

    /**
     * 二级预警地理范围
     */
    @TableField(value = "ybba01c100")
    private String ybba01c100;

    /**
     * 一级预警地理范围
     */
    @TableField(value = "ybba01c110")
    private String ybba01c110;

    /**
     * 预警文档路径
     */
    @TableField(value = "ybba01c120")
    private String ybba01c120;

    /**
     * 解析后坐标串
     */
    @TableField(value = "ybba01c130")
    private Object ybba01c130;

    /**
     * 预警编号
     */
    @TableField(value = "ybba01c140")
    private Integer ybba01c140;

    /**
     * 预警内容
     */
    @TableField(value = "ybba01c150")
    private String ybba01c150;

    /**
     * 行政编号
     */
    @TableField(value = "ybba01c160")
    private String ybba01c160;

    /**
     * 行政名称
     */
    @TableField(value = "ybba01c170")
    private String ybba01c170;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybba01c other = (Ybba01c) that;
        return (this.getYbba01c010() == null ? other.getYbba01c010() == null : this.getYbba01c010().equals(other.getYbba01c010()))
                && (this.getYbba01c020() == null ? other.getYbba01c020() == null : this.getYbba01c020().equals(other.getYbba01c020()))
                && (this.getYbba01c030() == null ? other.getYbba01c030() == null : this.getYbba01c030().equals(other.getYbba01c030()))
                && (this.getYbba01c040() == null ? other.getYbba01c040() == null : this.getYbba01c040().equals(other.getYbba01c040()))
                && (this.getYbba01c050() == null ? other.getYbba01c050() == null : this.getYbba01c050().equals(other.getYbba01c050()))
                && (this.getYbba01c060() == null ? other.getYbba01c060() == null : this.getYbba01c060().equals(other.getYbba01c060()))
                && (this.getYbba01c070() == null ? other.getYbba01c070() == null : this.getYbba01c070().equals(other.getYbba01c070()))
                && (this.getYbba01c080() == null ? other.getYbba01c080() == null : this.getYbba01c080().equals(other.getYbba01c080()))
                && (this.getYbba01c090() == null ? other.getYbba01c090() == null : this.getYbba01c090().equals(other.getYbba01c090()))
                && (this.getYbba01c100() == null ? other.getYbba01c100() == null : this.getYbba01c100().equals(other.getYbba01c100()))
                && (this.getYbba01c110() == null ? other.getYbba01c110() == null : this.getYbba01c110().equals(other.getYbba01c110()))
                && (this.getYbba01c120() == null ? other.getYbba01c120() == null : this.getYbba01c120().equals(other.getYbba01c120()))
                && (this.getYbba01c130() == null ? other.getYbba01c130() == null : this.getYbba01c130().equals(other.getYbba01c130()))
                && (this.getYbba01c140() == null ? other.getYbba01c140() == null : this.getYbba01c140().equals(other.getYbba01c140()))
                && (this.getYbba01c150() == null ? other.getYbba01c150() == null : this.getYbba01c150().equals(other.getYbba01c150()))
                && (this.getYbba01c160() == null ? other.getYbba01c160() == null : this.getYbba01c160().equals(other.getYbba01c160()))
                && (this.getYbba01c170() == null ? other.getYbba01c170() == null : this.getYbba01c170().equals(other.getYbba01c170()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbba01c010() == null) ? 0 : getYbba01c010().hashCode());
        result = prime * result + ((getYbba01c020() == null) ? 0 : getYbba01c020().hashCode());
        result = prime * result + ((getYbba01c030() == null) ? 0 : getYbba01c030().hashCode());
        result = prime * result + ((getYbba01c040() == null) ? 0 : getYbba01c040().hashCode());
        result = prime * result + ((getYbba01c050() == null) ? 0 : getYbba01c050().hashCode());
        result = prime * result + ((getYbba01c060() == null) ? 0 : getYbba01c060().hashCode());
        result = prime * result + ((getYbba01c070() == null) ? 0 : getYbba01c070().hashCode());
        result = prime * result + ((getYbba01c080() == null) ? 0 : getYbba01c080().hashCode());
        result = prime * result + ((getYbba01c090() == null) ? 0 : getYbba01c090().hashCode());
        result = prime * result + ((getYbba01c100() == null) ? 0 : getYbba01c100().hashCode());
        result = prime * result + ((getYbba01c110() == null) ? 0 : getYbba01c110().hashCode());
        result = prime * result + ((getYbba01c120() == null) ? 0 : getYbba01c120().hashCode());
        result = prime * result + ((getYbba01c130() == null) ? 0 : getYbba01c130().hashCode());
        result = prime * result + ((getYbba01c140() == null) ? 0 : getYbba01c140().hashCode());
        result = prime * result + ((getYbba01c150() == null) ? 0 : getYbba01c150().hashCode());
        result = prime * result + ((getYbba01c160() == null) ? 0 : getYbba01c160().hashCode());
        result = prime * result + ((getYbba01c170() == null) ? 0 : getYbba01c170().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybba01c010=").append(ybba01c010);
        sb.append(", ybba01c020=").append(ybba01c020);
        sb.append(", ybba01c030=").append(ybba01c030);
        sb.append(", ybba01c040=").append(ybba01c040);
        sb.append(", ybba01c050=").append(ybba01c050);
        sb.append(", ybba01c060=").append(ybba01c060);
        sb.append(", ybba01c070=").append(ybba01c070);
        sb.append(", ybba01c080=").append(ybba01c080);
        sb.append(", ybba01c090=").append(ybba01c090);
        sb.append(", ybba01c100=").append(ybba01c100);
        sb.append(", ybba01c110=").append(ybba01c110);
        sb.append(", ybba01c120=").append(ybba01c120);
        sb.append(", ybba01c130=").append(ybba01c130);
        sb.append(", ybba01c140=").append(ybba01c140);
        sb.append(", ybba01c150=").append(ybba01c150);
        sb.append(", ybba01c160=").append(ybba01c160);
        sb.append(", ybba01c170=").append(ybba01c170);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
